tools/libxl: Avoid deliberate NULL pointer dereference
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2013 11:12:50 +0000 (11:12 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 25 Nov 2013 12:29:48 +0000 (12:29 +0000)
commit1677af03c14f2d8d88d2ed9ed8ce6d4906d19fb4
treed86b7f9113994d087372f7f901748ed06217586d
parent375b0e1bfba15d4493a24d7b0e33d573d0e2fc3a
tools/libxl: Avoid deliberate NULL pointer dereference

Coverity ID: 1055290

Calling LIBXL__LOG_ERRNO(ctx,) with a ctx pointer we have just failed to
allocate is going to end badly.  Opencode a suitable use of xtl_log() instead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c